from django.conf.urls import url
from ars import views
# from django.views.decorators.csrf import csrf_exempt

urlpatterns = [
    # url(r'^org$', views.OrginazeView.as_view(), name='ars-orgs'),
    # url(r'^org/(?P<pk>[0-9]+)$', views.OrgView.as_view(), name='ars-org'),
    # url(r'^org_level$', views.OrgLevelsView.as_view(), name='ars-org-levels'),
    # url(r'^org_level/(?P<pk>[0-9]+)$', views.OrgLevelView.as_view(), name='ars-org-level'),
    url(r'^projects$', views.ProjectsView.as_view(), name='ars-projects'),
    url(r'^check_user$', views.CheckUserView.as_view(), name='ars-check-user'),

    url(r'^roles$', views.RolesView.as_view(), name='ars-roles'),
    url(r'^roles/(?P<pk>[0-9]+)$', views.RoleView.as_view(), name='ars-role'),
    url(r'^functions$', views.FunctionsView.as_view(), name='ars-functions'),
    url(r'^functions/(?P<pk>[0-9]+)$', views.FunctionView.as_view(), name='ars-function'),
    url(r'^user_role$', views.UserRoleMapsView.as_view(), name='ars-user-roles'),
    url(r'^user_role/(?P<pk>[0-9]+)$', views.UserRoleMapView.as_view(), name='ars-user-role'),
    url(r'^role_functions$', views.RoleFunctionsMapView.as_view(), name='ars-role-functions'),
    url(r'^role_functions/(?P<pk>[0-9]+)$', views.RoleFunctionMapView.as_view(), name='ars-role-function'),
    url(r'^project_role$', views.ProjectRoleView.as_view(), name='ars-user-role'),
    url(r'^child_function$', views.ChildFunctionView.as_view(), name='ars-child-function'),
    url(r'^bulk_add_function$', views.BulkAddFunctionView.as_view(), name='ars-bulk-add-function'),

    url(r'^home$', views.home, name='ars-home'),
]
